﻿@*
    * ---------------------------------------------------
    * 作者: MTQ
    * 日期： 2018-09-05 15:33:26
    * ---------------------------------------------------
*@
@model MTQ.Model.Base_Role
@using MTQ.BLL

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_LayoutManager.cshtml";
}
<script type="text/javascript">
    function submitFormCreate(obj) {
        manageFormCommit(obj, "/Base_Role/Edit", $("#spanMsg"), $("table[name='table_Base_Role']"));
    }
</script>
<div class="tab-pane">
    <div class="portlet box blue margin-bottom-0 ">
        <div class="portlet-title">
            <div class="caption">
                <i class="fa fa-gift"></i>Edit
            </div>
            <div class="tools">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            </div>
        </div>
        <div class="portlet-body form">
            <!-- BEGIN FORM-->

            @using (Html.BeginForm(null, null, FormMethod.Post, new { @class = "form-horizontal form-bordered form-row-stripped" }))
            {
                @Html.ValidationSummary(true)

                <fieldset>
                    <legend style="display: none"></legend>
                    <div class="form-body">
                        <div class="form-group" style="display:none;">
                            <label class="col-md-3 control-label">@Base_LocalService.GetWord("Role_Id", @ViewBag.CultureInfoName)</label>
                            <div class="col-md-5">
                                @Html.TextBoxFor(model => model.Role_Id, new { @class = "form-control", placeholder = "Enter Role_Id" })
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">@Base_LocalService.GetWord("Role_Code", @ViewBag.CultureInfoName)</label>
                            <div class="col-md-5">
                                @Html.TextBoxFor(model => model.Role_Code, new { @class = "form-control", placeholder = "Enter Role_Code" })
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-3 control-label">@Base_LocalService.GetWord("Role_Name", @ViewBag.CultureInfoName)</label>
                            <div class="col-md-5">
                                @Html.TextBoxFor(model => model.Role_Name, new { @class = "form-control", placeholder = "Enter Role_Name" })
                            </div>
                        </div>
                       
                        <div class="form-group">
                            <label class="col-md-3 control-label">@Base_LocalService.GetWord("Role_Available", @ViewBag.CultureInfoName)</label>
                            <div class="col-md-5">
                                @Html.DropDownListFor(model => model.Role_Available, ViewBag.ListAvailable as IEnumerable<SelectListItem>, new { @class = "select2_category  form-control", @tabindex = "1", placeholder = "Enter Role_Available" })
                            </div>
                        </div>
                    </div>

                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-offset-3 col-md-9">
                                <button type="button" class="btn green-meadow" onclick="submitFormCreate(this)"><i class="fa fa-check"></i>确认</button>
                                <button type="button" class="btn green-meadow" data-dismiss="modal" style="margin-left: 70px;">关闭</button>
                            </div>
                        </div>
                    </div>
                </fieldset>
            }
        </div>
    </div>
</div>
<script>
    FormSamples.init();
</script>

